<template>
  <div>
    <el-link type="primary" @click="handleClick()">{{ value ? '查看' : '' }}</el-link>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: String,
      required: true
    }
  },
  computed: {
  },
  mounted () {
    console.log(this.value)
  },
  methods: {
    handleClick() {
      window.open(this.value, '_blank');
    }
  }
}
</script>